<% title _("Bookmarks") %>
<% title_actions documentation_button('4.1.5Searching') %>

<table class="<%= table_css_classes("table-hover table-fixed") %>">
  <thead>
    <tr>
      <th><%= sort :name, :as => s_("Bookmark|Name") %></th>
      <th><%= s_("Bookmark|Query") %></th>
      <th><%= sort :controller, :as => s_("Bookmark|Controller") %></th>
      <th><%= s_("Bookmark|Public") %></th>
      <th><%= _('Actions') %></th>
    </tr>
  </thead>
  <tbody>
    <% @bookmarks.each do |bookmark| %>
      <tr>
        <td><%= link_to_if_authorized(trunc_with_tooltip(bookmark.name), hash_for_edit_bookmark_path(bookmark)) %></td>
        <td><%= bookmark.query %></td>
        <td><%= bookmark.controller %></td>
        <td><%= bookmark.public %></td>
        <td>
          <%= action_buttons(display_delete_if_authorized hash_for_bookmark_path(bookmark),
            :data => { :confirm => _("Delete %s?") % bookmark.name }) %>
        </td>
      </tr>
    <% end %>
  </tbody>
</table>
<%= will_paginate_with_info @bookmarks %>
